package com.xiaoxie.system.service;

import com.xiaoxie.system.domain.Permission;
import com.xiaoxie.system.domain.dto.LoginUser;

import java.util.List;

public interface LoginService {
    /**
     * 用户登录
     * @param loginUser
     * @return
     */
    boolean login(LoginUser loginUser);

    /**
     * 根据用户id获取权限
     * @param uid
     * @return
     */
    List<Permission> getPermission(Integer uid);

    /**
     * 根据用户id获取菜单
     * @param uid
     * @return
     */
    List<Permission> getMenuByUserId(Integer uid);
}
